﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="PlaneTicketList.aspx.cs" Inherits="ServicesSheet_PlaneTicketList" %>

<%@ Register Src="../Control/DepartmentDList.ascx" TagName="DepartmentDList" TagPrefix="uc1" %>
<%@ Register Src="../Control/DSelYearMonth.ascx" TagName="DSelYearMonth" TagPrefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titile" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
    <InfoLight:WebDataSource ID="Master" runat="server" AutoApply="True" WebDataSetID="WMaster"
                DataMember="View_Services_PlaneTicket">
            </InfoLight:WebDataSource>
            <InfoLight:WebDataSource ID="wdsState" runat="server" SelectAlias="Usasdb" SelectCommand="select &#13;&#10;Sys_FlowFlag.FlowFlag,&#13;&#10;Sys_FlowFlag.FlowFlagName &#13;&#10;from &#13;&#10;Sys_FlowFlag">
            </InfoLight:WebDataSource>
            
            <infolight:webnavigator id="WebNavigator1" runat="server" bindingobject="wgvMaster"
        width="100%" height="22px" statusstrip="WebStatusStrip1" showdatastyle="GridStyle"
        oncommand="WebNavigator1_Command" cssclass="NavigatorBar" ctlheight="25">
        <navcontrols>
               
                <InfoLight:ControlItem controlname="Add" controltext="add" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/AddSheet2.gif" imageurl="../Image/UIPics/AddSheet.gif"
                mouseoverimageurl="../Image/UIPics/AddSheet2.gif" size="80">
            </InfoLight:ControlItem>
             <InfoLight:ControlItem ControlName="ClientQuery" ControlText="查看流程图" ControlType="Image"
                    ControlVisible="True" ImageUrl="../image/uipics/querySheet.gif" MouseOverImageUrl="../image/uipics/querySheet2.gif"
                    Size="80" />
            </navcontrols>
        <navstates>
                <InfoLight:WebNavigatorStateItem StateText="Initial" />
                <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                <InfoLight:WebNavigatorStateItem StateText="Editing" />
                <InfoLight:WebNavigatorStateItem StateText="Applying" />
                <InfoLight:WebNavigatorStateItem StateText="Changing" />
                <InfoLight:WebNavigatorStateItem StateText="Querying" />
                <InfoLight:WebNavigatorStateItem StateText="Printing" />
            </navstates>
    </infolight:webnavigator>
              <table cellpadding="0" cellspacing="5" class="TbSearch">
                <tr>
                    <td style="width: 80px">
                        <asp:Label ID="Label2" runat="server" Text="部门名称："></asp:Label></td>
                    <td>
                        <uc1:DepartmentDList ID="DepartmentDList1" runat="server" />
                    </td>
                    <td style="width: 80px">
                        <asp:Label ID="Label1" runat="server" Text="流程标志:"></asp:Label></td>
                    <td style="width: 90px">
                        <InfoLight:WebDropDownList ID="WebDropDownList1" runat="server" AutoInsertEmptyData="True"
                            DataSourceID="wdsState" DataTextField="FlowFlagName" DataValueField="FlowFlag"
                            DriverObject="" Filter="" FilterObject="" OnlyShowSelectText="False"
                            AppendDataBoundItems="True">
                        </InfoLight:WebDropDownList></td>
                    <td style="width: 80px">
                        <asp:Label ID="Label3" runat="server" Text="申请日期："></asp:Label>
                        
                    </td>
                    <td style="width: 100px">
                        <uc2:DSelYearMonth ID="DSelYearMonth1" runat="server" />
                    </td>
                    <td >
                        
                        <span class="roundbtn">
                    <asp:LinkButton ID="btnSerch" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查 询&nbsp;&nbsp;&nbsp;&nbsp;" OnClick="btnSerch_Click"
                        CommandName="Save"></asp:LinkButton>
                </span>
                        </td>
                </tr>
            </table>
             <InfoLight:WebGridView ID="wgvPlaneTicket" runat="server" 
        CellPadding="5" CreateInnerNavigator="False"
                DataSourceID="Master" ForeColor="#333333" Width="100%" 
        TotalActive="True" ShowFooter="True"
                TotalCaption="总计:" OnRowDataBound="WebGridView1_RowDataBound" 
    PageSize="15">
   
                <AddNewRowControls>
                    <InfoLight:AddNewRowControlItem ControlID="wdtpView_Services_PlaneTicketOutDateF"
                        ControlType="DateTimePicker" FieldName="OutDate" />
                    <InfoLight:AddNewRowControlItem ControlID="wdtpView_Services_PlaneTicketRtnDateF"
                        ControlType="DateTimePicker" FieldName="RtnDate" />
                    <InfoLight:AddNewRowControlItem ControlID="wdtpView_Services_PlaneTicketApDateF"
                        ControlType="DateTimePicker" FieldName="ApDate" />
                </AddNewRowControls>
                <Columns>
                    <asp:TemplateField>
                        <itemstyle horizontalalign="Center" width="40px" />
                        <headerstyle horizontalalign="Center" width="40px" />
                        <itemtemplate>
                            <asp:ImageButton id="ibtnDelete" runat="server" CommandName="Delete" Text="Delete" ImageUrl="~/Image/UIPics/icon_delete.gif" CausesValidation="False" ImageAlign="AbsMiddle"></asp:ImageButton>                            
                            <img alt="查看明细" src="../Image/UIPics/(10,07).png" style="cursor:pointer;" onclick='window.open("ViewPlaneTicket.aspx?ptId=<%#Eval("ptId") %>","","top=200,left=200,height=470,width=600,status=no,toolbar=no,menubar=no,location=no")' />                                                    
                        </itemtemplate>
                    </asp:TemplateField>   
                      <asp:TemplateField HeaderText="单据编号" SortExpression="ptId">
                    <ItemTemplate>
                    <a href='PlaneTicket.aspx?FLOWFILENAME=FL\PlaneTicket&NAVMODE=Modify&FLNAVMODE=Submit&id=<%# Eval("ptId") %>&flowflag=<%# Eval("FlowFlag") %>&EmpId=<%# Eval("EmpId") %>'><%# Eval("ptId")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
                 
                    <asp:BoundField DataField="DepartmentName" HeaderText="部门" SortExpression="DepartmentName"
                        ReadOnly="True" />
                    <asp:BoundField DataField="EmpName" HeaderText="姓名" SortExpression="EmpName" ReadOnly="True" />
                    <asp:TemplateField HeaderText="申请日期" SortExpression="ApDate">
                        <itemstyle width="75px" />
                        <headerstyle width="75px" />
                        <itemtemplate>
<asp:Label id="Label1" runat="server" Text='<%# Bind("ApDate", "{0:d}") %>' __designer:wfdid="w9"></asp:Label>
</itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="出行日期" SortExpression="OutDate">
                        <itemstyle width="75px" />
                        <headerstyle width="75px" />
                        <itemtemplate>
<asp:Label runat="server" Text='<%# Bind("OutDate", "{0:d}") %>' id="Label2"></asp:Label>
</itemtemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="PreWay" HeaderText="出行路线" SortExpression="PreWay" ReadOnly="True" />
                    <asp:BoundField DataField="Cause" HeaderText="出行事由" ReadOnly="True" SortExpression="Cause" />
                    <asp:TemplateField HeaderText="是否双程" SortExpression="IsRoundTrip">
                        <itemstyle horizontalalign="Center" width="30px" />
                        <headerstyle width="30px" />
                        <itemtemplate>
<InfoLight:WebCheckBox id="WebCheckBox1" runat="server" __designer:wfdid="w8" KeyValues BindingType="Boolean" Checked='<%# Eval("IsRoundTrip") %>' Enabled="False"></InfoLight:WebCheckBox>
</itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="返程日期" SortExpression="RtnDate">
                        <itemstyle width="75px" />
                        <headerstyle width="75px" />
                        <itemtemplate>
<asp:Label id="Label3" runat="server" Text='<%# Bind("RtnDate", "{0:d}") %>' __designer:wfdid="w11"></asp:Label>
</itemtemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="TicketPrice" HeaderText="机票实价" SortExpression="TicketPrice"
                        DataFormatString="{0:#0.00}" HtmlEncode="False" ReadOnly="True">
                        <itemstyle width="50px" horizontalalign="Right" />
                        <headerstyle width="50px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="ReMark" HeaderText="备注" SortExpression="ReMark" ReadOnly="True" />
                    <asp:BoundField DataField="FlowFlagName" HeaderText="单据状态" SortExpression="FlowFlagName"
                        ReadOnly="True">
                        <itemstyle width="60px" />
                        <headerstyle width="60px" />
                    </asp:BoundField>
                </Columns>
                    <FooterStyle Font-Bold="True" ForeColor="Red"></FooterStyle>

 <rowstyle horizontalalign="Center"></rowstyle>
            <pagersettings mode="NumericFirstLast" />
            
            <rowstyle backcolor="#EFF3FB"></rowstyle>
            <editrowstyle backcolor="#2461BF"></editrowstyle>
            <selectedrowstyle backcolor="#D1DDF1" forecolor="#333333" font-bold="True"></selectedrowstyle>
            <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center"></pagerstyle>
            <headerstyle backcolor="DeepSkyBlue" forecolor="White" font-bold="True"></headerstyle>
            <alternatingrowstyle backcolor="White" bordercolor="White"></alternatingrowstyle>
                <TotalColumns>
                    <InfoLight:GridViewTotalItem FieldName="TicketPrice" />
                </TotalColumns>
            </InfoLight:WebGridView>
</asp:Content>

